//
//  ComposeViewController.h
//  Jacksms-Iphone
//
//  Created by Daniele Ciriello on 15/11/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <AddressBook/AddressBook.h> 
#import <AddressBookUI/AddressBookUI.h>


@interface ComposeViewController : UIViewController
	<ABPeoplePickerNavigationControllerDelegate, UITextFieldDelegate> {
		IBOutlet UIBarButtonItem *sendSmsButton;
		IBOutlet UITextField *smsPhoneNumber;
		IBOutlet UITextView *smsTextView;
		IBOutlet UIActivityIndicatorView *activityIndicator;
		IBOutlet UILabel *labelSendStatus;
		IBOutlet UIButton *browseContacts;
		IBOutlet UILabel *labelCharLeft;
		
		IBOutlet UINavigationBar *mainNavigationBar;
		
		NSMutableData *receivedData;
	}
	


@property (nonatomic, retain) UIBarButtonItem *sendSmsButton;
@property (nonatomic, retain) UITextField *smsPhoneNumber;
@property (nonatomic, retain) UITextView *smsTextView;
@property (nonatomic, retain) UIActivityIndicatorView *activityIndicator;
@property (nonatomic, retain) UILabel *labelSendStatus;
@property (nonatomic, retain) UIButton *browseContacts;
@property (nonatomic, retain) UILabel *labelCharLeft;


- (IBAction)sendSms;
- (IBAction)browseContactList;

- (IBAction)eraseSms;
- (IBAction)erasePhoneNumber;

- (IBAction)deactivateKeyboard;

- (void) sendSmsToInternet:(NSString*)number smsText:(NSString*)text;


@end
